package com.example.demo.one2many;


import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OneSender {
    @Autowired
    RabbitTemplate rabbitTemplate;
    public  void send(String message){
        rabbitTemplate.convertAndSend(One2ManyQueueConfig.queueName,message);
    }
}
